#!/bin/bash
# Repast Simphony Model Starter
# By Michael J. North and Jonathan Ozik
# 11/12/2007
# Note the Repast Simphony Directories.

PWD="${0%/*}"
cd $PWD

REPAST_SIMPHONY_ROOT=$PWD/repast.simphony/repast.simphony.runtime
REPAST_SIMPHONY_LIB=$REPAST_SIMPHONY_ROOT/lib

# Define the Core Repast Simphony Directories and JARs
#CP=$PWD/Test/bin
CP=$CP:$REPAST_SIMPHONY_ROOT/bin
CP=$CP:$REPAST_SIMPHONY_LIB/saf.core.runtime.jar
CP=$CP:$REPAST_SIMPHONY_LIB/commons-logging-1.0.4.jar
CP=$CP:$REPAST_SIMPHONY_LIB/groovy-all-1.0.jar
CP=$CP:$REPAST_SIMPHONY_LIB/javassist-3.1.jar
CP=$CP:$REPAST_SIMPHONY_LIB/jpf.jar
CP=$CP:$REPAST_SIMPHONY_LIB/jpf-boot.jar
CP=$CP:$REPAST_SIMPHONY_LIB/log4j-1.2.13.jar
CP=$CP:$REPAST_SIMPHONY_LIB/xpp3-1.1.3.4d_b4_min.jar
CP=$CP:$REPAST_SIMPHONY_LIB/xstream-1.1.3.jar

# Change to the Default Repast Simphony Directory
cd The Bullwhip Effect

# Start the Model
java -Xss10M -Xmx400M -cp $CP saf.core.runtime.Boot bullwhipeffect.rs $REPAST_SIMPHONY_ROOT/
